<template>
    <div class="admin_product_index">
        <div class="row">
            <div class="col-xs-12">
                <data-table class="box" :class="'box-'+theme" :options="options" ref="table">
                </data-table>
            </div>
        </div>
    </div>
</template>

<script>
    import {mapState, mapActions, mapMutations, mapGetters} from 'vuex';
    export default {
        components:{
            'data-table':()=>import(/* webpackChunkName: "common_components/datatable.vue" */ 'common_components/datatable.vue')
        },
        props: {
        },
        data(){
            return {
                options:{
                    lang_table:'products', //字段翻译
                    id:'data-table', //多个data-table同时使用时唯一标识
                    url:'', //数据表请求数据地址
                    operation:true, //操作列
                    checkbox:true, //选择列
                    btnSizerMore:false, //更多筛选条件按钮
                    keywordKey:'name', //关键字查询key
                    keywordGroup:false, //是否为选项组
                    keywordPlaceholder:()=>{
                        return this.$t('Please enter keywords');
                    },
                    primaryKey:'id', //数据唯一性主键
                    defOptions:null, //默认筛选条件
                    fields: {id:{name:"ID",order:true},description:{name:"备注",order:true,type:"textarea"},created_at:{name:"Created At",order:true,type:"time"},updated_at:{name:"Updated At",order:true,type:"time"},st_num:{name:"数量",order:true},st_coding:{name:"内部编码id",order:true},st_name:{name:"产品名",order:true},st_img:{name:"产品图片",order:true},st_asin:{name:"产品Asin",order:true},st_sku:{name:"产品SKU",order:true},st_label:{name:"标签码地址",order:true},st_upc:{name:"UPS",order:true},st_status:{name:"产品状态 0-未审核 101-审核通过 301-审核未通过",order:true},st_stocks:{name:"库存",order:true},st_weight:{name:"产品重量 g为单位",order:true},st_size:{name:"产品尺寸 cm为单位",order:true},st_head_cash:{name:"头程费用",order:true},st_cash:{name:"采购成本",order:true},st_is_small:{name:"是否轻小件 1-是 2-否",order:true},st_product_status:{name:"产品状态 300-在售 301-新品 302-停售",order:true},st_fnsku:{name:"产品fnsku",order:true},st_english:{name:"英文关键词",order:true},st_country:{name:"国家 站点",order:true},st_m_price:{name:"新品定价",order:true},st_fba_cost:{name:"fba费用",order:true},st_profit:{name:"利润",order:true},st_profit_ratio:{name:"利润率",order:true},st_is_repertory:{name:"是否有库存",order:true},st_shop_id:{name:"店铺id",order:true},st_is_compose:{name:"是否是组合 默认0 不是 1是组合",order:true}},
                }
            };
        },
        computed:{
            ...mapState([
                'use_url',
                'theme'
            ])
        },
        methods:{

        },
    };
</script>
<style lang="scss" scoped>


</style>
